Set

Function

This API is used to set the parameters of the Appearance Frequency page.

Request Message

See AI > Recongnition > Appearance Frequency > Range > Table 1 for parameter description.

Sample:

POST /API/AI/AppearanceFrequency/Set HTTP/1.1
{
    "version": "1.0",
    "data": {
        "group_info_list": [
            {
                "name": "Allowed",
                "group_id": 2,
                "is_selected": true
            },
            {
                "name": "Forbidden",
                "group_id": 3,
                "is_selected": true
            },
            {
                "name": "Stranger",
                "group_id": 4,
                "is_selected": true
            }
        ],
        "channel": [
            "CH1",
            "CH2",
            "CH3",
            "CH4",
            "CH5",
            "CH6"
        ],
        "frequency_interval": 30,
        "similarity": 70,
        "max_statistics": 5000,
        "alarm_switch": false,
        "age_filter_switch": false,
        "alarm_min_age": 18,
        "frequency_threshold_value": 2,
        "cycle": 31,
        "buzzer": false,
        "io_output": true,
        "alarm_out": [
            "Local->1"
        ],
        "voice_prompts": false,
        "voice_prompts_index": [
            0,
            0,
            0,
            0,
            0,
            0,
            0,
            0,
            0,
            0,
            0,
            0
        ],
        "voice_prompts_select": [
            1,
            0
        ],
        "voice_prompts_speaker_select": [
            0
        ],
        "voice_prompts_time": [
            {
                "start_hour": 0,
                "start_minute": 0,
                "start_second": 0,
                "end_hour": 23,
                "end_minute": 59,
                "end_second": 59
            },
            {
                "start_hour": 0,
                "start_minute": 0,
                "start_second": 0,
                "end_hour": 23,
                "end_minute": 59,
                "end_second": 59
            },
            {
                "start_hour": 0,
                "start_minute": 0,
                "start_second": 0,
                "end_hour": 23,
                "end_minute": 59,
                "end_second": 59
            },
            {
                "start_hour": 0,
                "start_minute": 0,
                "start_second": 0,
                "end_hour": 23,
                "end_minute": 59,
                "end_second": 59
            },
            {
                "start_hour": 0,
                "start_minute": 0,
                "start_second": 0,
                "end_hour": 23,
                "end_minute": 59,
                "end_second": 59
            },
            {
                "start_hour": 0,
                "start_minute": 0,
                "start_second": 0,
                "end_hour": 23,
                "end_minute": 59,
                "end_second": 59
            },
            {
                "start_hour": 0,
                "start_minute": 0,
                "start_second": 0,
                "end_hour": 23,
                "end_minute": 59,
                "end_second": 59
            },
            {
                "start_hour": 0,
                "start_minute": 0,
                "start_second": 0,
                "end_hour": 23,
                "end_minute": 59,
                "end_second": 59
            },
            {
                "start_hour": 0,
                "start_minute": 0,
                "start_second": 0,
                "end_hour": 23,
                "end_minute": 59,
                "end_second": 59
            },
            {
                "start_hour": 0,
                "start_minute": 0,
                "start_second": 0,
                "end_hour": 23,
                "end_minute": 59,
                "end_second": 59
            },
            {
                "start_hour": 0,
                "start_minute": 0,
                "start_second": 0,
                "end_hour": 23,
                "end_minute": 59,
                "end_second": 59
            },
            {
                "start_hour": 0,
                "start_minute": 0,
                "start_second": 0,
                "end_hour": 23,
                "end_minute": 59,
                "end_second": 59
            }
        ]
    }
}

Response Message

None.

Sample:

HTTP/1.1 200 OK
Content-Type: application/json
{
	"result": "success",
	"data": {}
}

Error Code

See Response Messages Body and Common error_code for more information.